package com.orphan.marketFront.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.orphan.marketFront.po.UserInfo;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

@Repository
public interface UserInfoMapper extends BaseMapper<UserInfo> {

    //根据用户名查询用户
    @Select("select u_id,user_name,password,real_name,gender,tel,company,identity,license from userInfo where u_id=#{id}")
    public UserInfo getUserById(Long id);
}
